from Backtesting import backtest
from Strategy import *
import pickle


data_file = './data.pkl'
with open(data_file, 'rb') as f:
    data = pickle.load(f)


strategy =Ma(3)
'''目前看起来Ma(3)比较好，年化收益有13.07%'''
backtest = backtest(data, strategy)

backtest.run()
backtest.visualize()
backtest.analyze()